package com.xbongbong.paas.field;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/8/14 16:45
 * @desrcption: 可见高级设置规则
 */
@Getter
@Setter
@ToString
public class VisibleRulePoJo implements Serializable {

    private static final long serialVersionUID = -2242086185660761319L;
    /**
     * 1 不给谁看，2 部分可见
     * @see com.xbongbong.paas.enums.VisibleTypeEnum
     */
    private Integer type;

    /**
     * 相关人员，1 负责人，2 协同人，3 创建人 4 负责人主管
     * @see com.xbongbong.paas.enums.RelatedPersonnelEnum
     */
    private List<Integer> relative;

    /**
     * 授权角色
     */
    private List<Integer> role;
    /**
     *  授权部门
     */
    private List<VisibleRuleVO> dep;
    /**
     *  授权用户
     */
    private List<String> user;

    private List<VisibleRuleVO> userList;
    private List<VisibleRuleVO> roleList;

    public VisibleRulePoJo(){
        relative = new ArrayList<>();
        role = new ArrayList<>();
        dep = new ArrayList<>();
        user = new ArrayList<>();
        userList = new ArrayList<>();
        roleList = new ArrayList<>();
    }

}
